<template>
  <div>helloworldssssss
    <el-button @click="reqs">aaaa</el-button>
  </div>
</template>

<script>
export default {
  name: "helloworld",
  mounted() {

  },
  methods:{
    reqs(){
      this.axios({
        url:'api/',
        method:'get',
        responseType:'json'
      }).then(res=>{
        console.log('请求返回的数据=》 ',res)
      })
    }
  }
}
</script>

<style scoped>

</style>